/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package BLO;

import DAO.BrandsDAO;
import DTO.Brands.Brands;
import java.sql.SQLException;
import util.SupportUtil;

/**
 *
 * @author ThanhTai
 */
public class BrandsBLO {

    public void getAllBrands(String xmlFilePath) {
        try {
            BrandsDAO dao = new BrandsDAO();
            Brands brands = dao.getAllBrands(null);

            SupportUtil util = new SupportUtil();
            util.marshal(xmlFilePath, brands);

        } catch (SQLException ex) {
            ex.printStackTrace();
        } catch (Exception ex) {
            ex.printStackTrace();
        }
    }
}
